<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="renderer" content="webkit">
    <title>{{setting('site_name', config('app.name'))}} - 注册</title>
    <link rel="shortcut icon" href="/static/favicon.ico">
    <link href="/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/css/style.css?v=4.1.1" rel="stylesheet">
</head>

<body class="gray-bg bodyImg">
<div class="middle-box text-center loginscreen  animated fadeInDown">
    <div style="padding: 0px;">
        <div>
            <div class="logo-name"></div>
        </div>
        <br/>
        @if (count($errors) > 0)
        @foreach ($errors->all() as $error)
          <h4 style="color: red;">{{ $error }}</h4>
        @endforeach
        @endif
        <form class="m-t" role="form" method="POST" action="{{ route('register') }}">
            @csrf
            <div class="form-group">
                <input type="text" name="name" class="form-control" placeholder="用户名（必填）" value="{{ old('name') }}" required>
            </div>
            <div class="form-group">
                <input type="text" name="qq" class="form-control" placeholder="QQ账号（选填）" value="{{ old('qq') }}">
            </div>
            <div class="form-group">
                <input type="password" name="password" class="form-control" placeholder="密码（必填）" required>
            </div>
            <div class="form-group">
                <input type="password" name="password_confirmation" class="form-control" placeholder="确认密码（必填）" required>
            </div>
            <button type="submit" class="btn btn-primary block full-width m-b">注 册</button>
            <button type="button" class="btn btn-warning block full-width m-b" onclick="window.location.href='/login'">返回登录</button>
            </p>
        </form>
    </div>
</div>
</body>

</html>
